﻿@model src.Models.Ticket
@{
    Layout = null;
}

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span>
    </button>
    <h4 class="modal-title">Add / Edit Data</h4>
</div>
<form onsubmit="return SubmitAddEdit(this)">
    <div class="box-body">
        <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        <input type="hidden" asp-for="ticketId" />
        <input type="hidden" asp-for="organizationId" value="@Model.organizationId"/>
        <input type="hidden" asp-for="customerId" value="@Model.customerId"/>
        <input type="hidden" asp-for="contactId" value="@Model.contactId"/>
        <input type="hidden" asp-for="ticketStatus" value="@Model.ticketStatus" />
        <input type="hidden" asp-for="supportAgentId" value="@Model.supportAgentId" />
        <input type="hidden" asp-for="supportEngineerId" value="@Model.supportEngineerId"/>
        <input type="hidden" asp-for="ticketType" value="@Model.ticketType"/>
        <input type="hidden" asp-for="ticketPriority" value="@Model.ticketPriority"/>
        <input type="hidden" asp-for="ticketChannel" value="@Model.ticketChannel"/>
        <div class="row">
            <div class="col-lg-6">
                <div class="form-group">
                    <label asp-for="ticketName" class="control-label"></label>
                    <input asp-for="ticketName" class="form-control" />
                    <span asp-validation-for="ticketName" class="text-danger"></span>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="form-group">
                    <label asp-for="productId" class="control-label"></label>
                    <select asp-for="productId" class="form-control" asp-items="@ViewBag.productId"></select>
                    <span asp-validation-for="productId" class="text-danger"></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="description" class="control-label"></label>
            <input asp-for="description" class="form-control" />
            <span asp-validation-for="description" class="text-danger"></span>
        </div>
        <div class="row">
            <div class="col-lg-6">
                <div class="form-group">
                    <label asp-for="email" class="control-label"></label>
                    <input asp-for="email" class="form-control" />
                    <span asp-validation-for="email" class="text-danger"></span>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="form-group">
                    <label asp-for="phone" class="control-label"></label>
                    <input asp-for="phone" class="form-control" />
                    <span asp-validation-for="phone" class="text-danger"></span>
                </div>
            </div>
        </div>

    </div>

    <div class="box-footer">
        <button type="submit" class="btn btn-primary pull-right"><i class="fa fa-save"></i> Submit</button>
        <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
    </div>
</form>
<script>
    Ladda.bind('.btn', { timeout: 1000 });
</script>


